home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
LIB
/
UNIXLIB37B
/
!UnixLib37
/
src
/
time
/
c
/
settod
< prev
next >
Wrap
Text File
|
1996-11-09
|
1KB
|
47 lines
/****************************************************************************
*
* $Source: /unixb/home/unixlib/source/unixlib37/src/time/c/RCS/settod,v $
* $Date: 1996/04/19 21:35:00 $
* $Revision: 1.1 $
* $State: Rel $
* $Author: simon $
*
* $Log: settod,v $
* Revision 1.1 1996/04/19 21:35:00 simon
* Initial revision
*
***************************************************************************/
static const char rcs_id[] = "$Id: settod,v 1.1 1996/04/19 21:35:00 simon Rel $";
#include <errno.h>
#include <sys/time.h>
/* The `settimeofday' function sets the current date and time
according to the arguments. As for `gettimeofday', time zone
information is ignored if TZP is a null pointer.
You must be a privileged user in order to use `settimeofday'.
The return value is `0' on success and `-1' on failure. The
following `errno' error conditions are defined for this function:
`EPERM'
This process cannot set the time because it is not privileged.
`ENOSYS'
The operating system does not support setting time zone
information, and TZP is not a null pointer. */
/* Set the current time of day and timezone information.
This call is restricted to the super-user. */
int
settimeofday (const struct timeval *tv, const struct timezone *tz)
{
errno = EPERM;
tv = tv;
tz = tz;
return -1;
}